<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="ot" uri="http://www.ideyatech.com/tides"%>
<%@ taglib prefix="idy" tagdir="/WEB-INF/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%>

<div class="preview-container">
	<h4 class="oranged text-center">${treatment.procedure.name}</h4>
	<div><strong>Description</strong></div>
	<div>
		${treatment.description}<c:if test="${empty treatment.description}"><span class="muted">Not specified</span></c:if>
	</div>
	<br/>
	<div><strong>Result</strong></div>
	<div>
		<span class="oranged">${treatment.resultStatus.value}</span> - ${treatment.result}<c:if test="${empty treatment.result}"><span class="muted">Result description not specified</span></c:if>
	</div>
	<br/>
	<div class="text-center"><a href="${url_context}/treatment.jspx?id=${treatment.id}">View full details</a></div>
</div>

<script type="text/javascript">
	$(document).ready(function(){
		$('.preview-container').fadeIn();
	});

</script>